package com.vancouver.knows.business.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.vancouver.knows.business.bean.CommentInfo;

/**
 * 用户评论解析
 * <p/>
 * Created by cxlin
 */
public class UserInsertCommentHandler extends ACheckableJsonParser {

	private CommentInfo commentInfo;

	@Override
	protected void parserContent(JSONObject content) throws Exception {
		String commentDetails = content.getString("inserted_comment_details");
		commentInfo = JSON.parseObject(commentDetails, CommentInfo.class);
	}

	public CommentInfo getCommentInfo() {
		return commentInfo;
	}

}
